package agile.hustler.activities;

import agile.hustler.activities.R;
import agile.hustler.activities.R.id;
import agile.hustler.activities.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;

public class StartScreen extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.startscreen);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        
        findViewById(R.id.start_newgame).setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
        		startActivity(new Intent(StartScreen.this, NewGame.class));
        		finish();
        	}
        });
        
        findViewById(R.id.start_credits).setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
        		startActivity(new Intent(StartScreen.this, Credits.class));
        		finish();
        		System.gc();
        	}
        });
        
        
        
        findViewById(R.id.loadgame).setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
        		startActivity(new Intent(StartScreen.this, LoadGame.class));
        		finish();
        		System.gc();
        	}
        });

    }
}